package com.project.yuepai.controller.user;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping("/user")
public class UserPageJumpController {

    @RequestMapping(value = "/index",method = RequestMethod.GET)
    public String toPageIndex(){ return "index"; }

    @RequestMapping(value = "/login",method = RequestMethod.GET)
    public String toPageLogin(){
        return "login";
    }

    @RequestMapping(value = "/register",method = RequestMethod.GET)
    public String toPageRegister(){
        return "register";
    }

    @RequestMapping(value = "/findPwd",method = RequestMethod.GET)
    public String toPageFindPwd(){
        return "findPwd";
    }

    @RequestMapping(value = "/retrievePwd.action",method = RequestMethod.POST)
    public String retrievePwd(){
        return "success.";
    }
}
